<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload=function () {

            var onb=document.getElementById("s25");
            onb.onblur=function () {
                console.log("动态注册onblur事件")
            }

        }
    </script>
</head>
<body>
    用户账号:<input type="text" onblur="onblurFun()"/><br/>
    用户密码:<input type="password" id="s25"/><br/>
</body>
</html>